<template>
  <div>
    <van-nav-bar fixed placeholder left-arrow :title="info.title" @click-left="$router.back()" />
    <iframe :src="info.url" class="iframe" frameborder="0"></iframe>
  </div>
</template>

<script>
export default {
  data () {
    return {
      info: ''
    }
  },
  onLoad (option) {
    this.info = JSON.parse(option.params)
    console.log(this.info)
  }
}
</script>

<style scoped>
.iframe {
  width: 100vw;
  height: calc(100vh - 46px);
}
</style>
